-- GENERATED SPELL FOR [Vir'aani Raider] --


function spell0_17149(pUnit, Event) --@Eviscerate,n/a--
pUnit:FullCastSpellOnTarget(15691,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17149', 607, 1)
end

function spell1_17149(pUnit, Event) --@Gouge,n/a--
pUnit:FullCastSpellOnTarget(12540,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17149', 4316, 1)
end

function spell2_17149(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17149', 629, 1)
end

function Sorts_17149(pUnit, Event)
local choix_sorts_17149 = math.random(0, 2)
if choix_sorts_17149 == 0 then
pUnit:RegisterEvent('spell0_17149', 1, 1)
end
if choix_sorts_17149 == 1 then
pUnit:RegisterEvent('spell1_17149', 1, 1)
end
if choix_sorts_17149 == 2 then
pUnit:RegisterEvent('spell2_17149', 1, 1)
end
end

function mob17149_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17149', math.random(1500, 3000), 1)
end

function mob17149_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17149_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17149_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17149, 1, 'mob17149_Action')
RegisterUnitEvent(17149, 2, 'mob17149_Leave')
RegisterUnitEvent(17149, 3, 'mob17149_Kill')
RegisterUnitEvent(17149, 4, 'mob17149_Die')
